package cn.itcast.spring.demo5;

public class Tom {

	
	private String name;
	private int age;
	private String color;
	
	
	private Jerry jerry;
	
	
	
	public Tom() {
		super();
	}

	public Tom(String name, int age, String color) {
		super();
		this.name = name;
		this.age = age;
		this.color = color;
	}
	
	
	
	

	public Tom(String name, int age, String color, Jerry jerry) {
		super();
		this.name = name;
		this.age = age;
		this.color = color;
		this.jerry = jerry;
	}

	@Override
	public String toString() {
		return "Tom [name=" + name + ", age=" + age + ", color=" + color + ", jerry=" + jerry + "]";
	}

	
	
	
	
	
}
